<{include file="header.html"}>
<script type="text/javascript">
	function validate()
	{
        var email = document.getElementById('login');
        
        if(isEmptyTextBox(email, '<{$smarty.const._LB_EMAIL_IS_EMPTY|utf8_escape_js}>'))
			return false;
        if(!isValidLengthTextBox(email, <{$smarty.const.MAX_LENGTH_NAME}>, '<{$smarty.const._MSG_EMAIL_IS_TOO_LONG|utf8_escape_js}>')){
            return false;
        }
        
        if(!isValidEmail(email,'<{$smarty.const._LB_INVALID_EMAIL|utf8_escape_js}>')){
            return false;
        }
        document.user_login.submit();
    }
</script>
<div class="one_center">
	<div class="box_two_third">
		<div class="login_form" style="text-align:left;">
			<form name="user_login" method="post" action="<{$smarty.const.APPLICATION_URL|cat:'/login/login'}>" onsubmit="return true;">
				<div class="box_head"><{$smarty.const._LB_IDENTIFICATION|utf8_escape_html}></div>
				<div class="box_content">
					<div class="right">
						<div style="padding-right : 10px;"><input type="text" style="width:180px;" id="login" name="login" value="<{$login|utf8_escape_html}>" maxlength="255"/></div>
						<div style="padding-top:5px; padding-right: 10px;"><input type="password" style="width:180px;" id="pwd" name="pwd" value="" maxlength="20"/></div>
					</div>
					<div style="padding-top: 5px; padding-left: 10px;"><{$smarty.const._LB_LOGIN|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></div>
					<div style="padding-top: 15px; padding-left: 10px;">
						<{$smarty.const._LB_PASSWORD|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}>
					</div>
					<div style="text-align: right; padding-top: 10px; clear:right;">
						<a class="tribullet" href="#" onclick="validate()"><{$smarty.const._LB_CONNECTION}></a>
					</div>
				</div>
                <input type="submit" style="width:0; height:0; border:0; background-color:inherit;overflow:hidden;"/>
				<input type="hidden" name="return_link" value="<{$return_link|utf8_escape_html}>"/>
			</form>
		</div>
	</div>
	<div style="text-align:center">
		<{if isset($message_error)}>
			<div class="spacer"></div>
			<{if is_array($message_error)}>
				<{foreach item=message from=$message_error}>
					<{$message}><br />
				<{/foreach}>
			<{else}>
				<span class="message_erreur"><{$message_error}></span>
			<{/if}>
		<{/if}>
	</div>
</div>
<{include file="footer.html"}>
